<?php

namespace App\Admin;

use Illuminate\Database\Eloquent\Model;

class User_itemComment extends Model
{
    protected $connection = 'mysql_center';
    protected $table = 'user_item_comment';

    public function rel_commentImg(){
        return $this -> hasOne('App\Admin\User_itemCommentImg','comment_id','id');
    }

    public function rel_user(){
        return $this -> hasOne('App\Admin\User','id','uid') -> select('id','username','avatar');
    }
}